import { create } from 'zustand';
import { subscribeWithSelector } from 'zustand/middleware';

type SolvertStore = {
  solverContent: string;
  setSolverContent: (solverContent: string) => void;
};
export const useSolvertStore = create<SolvertStore>()(
  subscribeWithSelector((set) => ({
    solverContent: undefined,
    setSolverContent: (solverContent: string) => set({ solverContent }),
  })),
);
